﻿@{
    Layout = null;
    ViewBag.Title = "征收期维护";
}
@model List<ElingOA6_Admin_DSJCJ.Model.TaxPeriod>

<!DOCTYPE html>

<html>
<head>
    <title>征收期维护</title>
    @Html.Partial("LoadPanelPartial")
    <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
    @if (false)
    {
        <script src="../../../../Scripts/jquery-vsdoc.js" type="text/javascript"></script>
        <script src="../../../../Scripts/ASPxScriptIntelliSense.js" type="text/javascript"></script>
    }

    <script>
        if (top.boardtop) {
            top.boardtop.head_txt.innerText = "征收期维护";
        }
    </script>

    <link href="@Url.Content("~/Content/Site.css", true)" rel="stylesheet" type="text/css" />

    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>
    <script src="@Url.Content("~/Common/GetRootPath.ashx", true)" type="text/javascript"></script>

    @Html.DevExpress().GetStyleSheets(
        new StyleSheet { ExtensionType = ExtensionType.ListBox }
    )
    @Html.DevExpress().GetScripts(
         new Script { ExtensionType = ExtensionType.ListBox }
    )

    <script type="text/javascript">
        $(function () {
            var message = $('#hdMessage').val();
            if (typeof (message) != undefined && message != "" && message != null) {
                alert(message);
            }
        })
        //点击确定按钮后验证原密码
        function ok() {
            form1.submit();
        }

        /*取消*/
        function cancel() {
            window.top.location.href = rootPath + "/Index";
        }
    </script>


</head>
<body>
    @using (Html.BeginForm("UpdateTaxPeriod", "TaxPeriod", FormMethod.Post, new { id = "form1", @class = "tableFrom" }))
    {
		<table align="center" class="tableForm">
	        <tr>
                <td></td>
		        <td style=" font-size:20px;"> 
                当前年度:
                @Html.DevExpress().Label(settings =>
               {
                   settings.Name = "lbCurrentYear";
                   settings.Text = ViewData["currentYear"].ToString();
               }).GetHtml()
               @Html.Hidden("hdCurrentYear", ViewData["currentYear"])
                </td>
		    </tr>
	        <tr>
		        <th>1月的征收期:</th>
		        <td class="tdClass">
                    @Html.DevExpress().DateEdit(settings => 
               {
                   settings.Name = "dtFEndDate1";
                   settings.Width = 150;
                   settings.Properties.DisplayFormatString = "yyyy-MM-dd";
                   settings.Properties.EditFormatString = "yyyy-MM-dd";
                   settings.Properties.CalendarProperties.Style.CssClass = "ctlDateEdit";
                   settings.Properties.CalendarProperties.ShowWeekNumbers = false;
               }).Bind(Model[0].FEndDate).GetHtml()

                   
		        </td>
	        </tr>
            <tr>
		        <th>2月的征收期:</th>
		        <td class="tdClass">
                    @Html.DevExpress().DateEdit(settings =>
               {
                   settings.Name = "dtFEndDate2";
                   settings.Width = 150;
                   settings.Properties.DisplayFormatString = "yyyy-MM-dd";
                   settings.Properties.EditFormatString = "yyyy-MM-dd";
                   settings.Properties.CalendarProperties.Style.CssClass = "ctlDateEdit";
                   settings.Properties.CalendarProperties.ShowWeekNumbers = false;
               }).Bind(Model[1].FEndDate).GetHtml()
		        </td>
	        </tr>
            <tr>
		        <th>3月的征收期:</th>
		        <td class="tdClass">
                    @Html.DevExpress().DateEdit(settings =>
               {
                   settings.Name = "dtFEndDate3";
                   settings.Width = 150;
                   settings.Properties.DisplayFormatString = "yyyy-MM-dd";
                   settings.Properties.EditFormatString = "yyyy-MM-dd";
                   settings.Properties.CalendarProperties.Style.CssClass = "ctlDateEdit";
                   settings.Properties.CalendarProperties.ShowWeekNumbers = false;
               }).Bind(Model[2].FEndDate).GetHtml()
		        </td>
	        </tr>
            <tr>
		        <th>4月的征收期:</th>
		        <td class="tdClass">
                    @Html.DevExpress().DateEdit(settings =>
               {
                   settings.Name = "dtFEndDate4";
                   settings.Width = 150;
                   settings.Properties.DisplayFormatString = "yyyy-MM-dd";
                   settings.Properties.EditFormatString = "yyyy-MM-dd";
                   settings.Properties.CalendarProperties.Style.CssClass = "ctlDateEdit";
                   settings.Properties.CalendarProperties.ShowWeekNumbers = false;
               }).Bind(Model[3].FEndDate).GetHtml()
		        </td>
	        </tr>
            <tr>
		        <th>5月的征收期:</th>
		        <td class="tdClass">
                    @Html.DevExpress().DateEdit(settings =>
               {
                   settings.Name = "dtFEndDate5";
                   settings.Width = 150;
                   settings.Properties.DisplayFormatString = "yyyy-MM-dd";
                   settings.Properties.EditFormatString = "yyyy-MM-dd";
                   settings.Properties.CalendarProperties.Style.CssClass = "ctlDateEdit";
                   settings.Properties.CalendarProperties.ShowWeekNumbers = false;
               }).Bind(Model[4].FEndDate).GetHtml()
		        </td>
	        </tr>
            <tr>
		        <th>6月的征收期:</th>
		        <td class="tdClass">
                    @Html.DevExpress().DateEdit(settings =>
               {
                   settings.Name = "dtFEndDate6";
                   settings.Width = 150;
                   settings.Properties.DisplayFormatString = "yyyy-MM-dd";
                   settings.Properties.EditFormatString = "yyyy-MM-dd";
                   settings.Properties.CalendarProperties.Style.CssClass = "ctlDateEdit";
                   settings.Properties.CalendarProperties.ShowWeekNumbers = false;
               }).Bind(Model[5].FEndDate).GetHtml()
		        </td>
	        </tr>
            <tr>
		        <th>7月的征收期:</th>
		        <td class="tdClass">
                    @Html.DevExpress().DateEdit(settings =>
               {
                   settings.Name = "dtFEndDate7";
                   settings.Width = 150;
                   settings.Properties.DisplayFormatString = "yyyy-MM-dd";
                   settings.Properties.EditFormatString = "yyyy-MM-dd";
                   settings.Properties.CalendarProperties.Style.CssClass = "ctlDateEdit";
                   settings.Properties.CalendarProperties.ShowWeekNumbers = false;
               }).Bind(Model[6].FEndDate).GetHtml()
		        </td>
	        </tr>
            <tr>
		        <th>8月的征收期:</th>
		        <td class="tdClass">
                    @Html.DevExpress().DateEdit(settings =>
               {
                   settings.Name = "dtFEndDate8";
                   settings.Width = 150;
                   settings.Properties.DisplayFormatString = "yyyy-MM-dd";
                   settings.Properties.EditFormatString = "yyyy-MM-dd";
                   settings.Properties.CalendarProperties.Style.CssClass = "ctlDateEdit";
                   settings.Properties.CalendarProperties.ShowWeekNumbers = false;
               }).Bind(Model[7].FEndDate).GetHtml()
		        </td>
	        </tr>
            <tr>
		        <th>9月的征收期:</th>
		        <td class="tdClass">
                    @Html.DevExpress().DateEdit(settings =>
               {
                   settings.Name = "dtFEndDate9";
                   settings.Width = 150;
                   settings.Properties.DisplayFormatString = "yyyy-MM-dd";
                   settings.Properties.EditFormatString = "yyyy-MM-dd";
                   settings.Properties.CalendarProperties.Style.CssClass = "ctlDateEdit";
                   settings.Properties.CalendarProperties.ShowWeekNumbers = false;
               }).Bind(Model[8].FEndDate).GetHtml()
		        </td>
	        </tr>
            <tr>
		        <th>10月的征收期:</th>
		        <td class="tdClass">
                    @Html.DevExpress().DateEdit(settings =>
               {
                   settings.Name = "dtFEndDate10";
                   settings.Width = 150;
                   settings.Properties.DisplayFormatString = "yyyy-MM-dd";
                   settings.Properties.EditFormatString = "yyyy-MM-dd";
                   settings.Properties.CalendarProperties.Style.CssClass = "ctlDateEdit";
                   settings.Properties.CalendarProperties.ShowWeekNumbers = false;
               }).Bind(Model[9].FEndDate).GetHtml()
		        </td>
	        </tr>
            <tr>
		        <th>11月的征收期:</th>
		        <td class="tdClass">
                    @Html.DevExpress().DateEdit(settings =>
               {
                   settings.Name = "dtFEndDate11";
                   settings.Width = 150;
                   settings.Properties.DisplayFormatString = "yyyy-MM-dd";
                   settings.Properties.EditFormatString = "yyyy-MM-dd";
                   settings.Properties.CalendarProperties.Style.CssClass = "ctlDateEdit";
                   settings.Properties.CalendarProperties.ShowWeekNumbers = false;
               }).Bind(Model[10].FEndDate).GetHtml()
		        </td>
	        </tr>
            <tr>
		        <th>12月的征收期:</th>
		        <td class="tdClass">
                    @Html.DevExpress().DateEdit(settings =>
               {
                   settings.Name = "dtFEndDate12";
                   settings.Width = 150;
                   settings.Properties.DisplayFormatString = "yyyy-MM-dd";
                   settings.Properties.EditFormatString = "yyyy-MM-dd";
                   settings.Properties.CalendarProperties.Style.CssClass = "ctlDateEdit";
                   settings.Properties.CalendarProperties.ShowWeekNumbers = false;
               }).Bind(Model[11].FEndDate).GetHtml()
		        </td>
	        </tr>
		    <tr> 
                <td></td>
                <td> 
                    @Html.DevExpress().Button(settings =>
               {
                   settings.Name = "btnOK";
                   settings.Text = "确定";
                   settings.ControlStyle.CssClass = "button";
                   settings.Images.Image.Url = Url.Content("~/Content/ControlImages/ok.png");
                   settings.ClientSideEvents.Click = "ok";
               }).GetHtml()
                    @Html.DevExpress().Button(settings =>
               {
                   settings.Name = "btnCancel";
                   settings.Text = "取消";
                   settings.ControlStyle.CssClass = "button";
                   settings.Images.Image.Url = Url.Content("~/Content/ControlImages/no.png");
                   settings.CausesValidation = false;
                   settings.ClientSideEvents.Click = "cancel";

               }).GetHtml()
                </td>
            </tr>
		</table>
        
        @Html.Hidden("hdMessage", ViewData["message"])
    }

</body>
</html>
